/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Common;

/**
 *
 * @author Samsung
 */
public class Message {
   
    private Comunication comunication;
    private Detail detail;
    
    public Message() {
        
    }

    public Message(String sender, String receiver, String subject, String body) {
        
        comunication=new Comunication(sender, receiver);
        detail=new Detail(subject, body);
       
    }

    @Override
    public String toString()
    {
        return comunication.toString()+", " +detail.toString() ;
                
    }
        
}
